/**
 *	---------------------------------------------------------------------------
 *	COMP 6231/FALL 2013
 *	Assignment - 02
 *	@author Talha Rahman (1296884)
 *	---------------------------------------------------------------------------
 *	This is a driver class which loads three instances of the CORBA server.
 *	@see {@link StationServerCORBA}
 *	  
 */
package ca.concordia.comp6231.server;

import java.rmi.RemoteException;


public class ServerLoader {

	private static StationServer server1;
	private static StationServer server2;
	private static StationServer server3;
	
	/**
	 * @param args
	 * @throws Exception 
	 * @throws RemoteException 
	 */
	public static void main(String[] args) throws Exception {		
		server1 = new StationServer("SPVM");
		server2 = new StationServer("SPL");
		server3 = new StationServer("SPB");
		
		System.out.println(server1.createCRecord("test", "test", "test", "InProgress", "SPL123456"));
		server1.printAllRecords();
		server2.createMRecord("test", "test", "test", "test", "test", "test", "Missing", "SPL123456");
		server2.printAllRecords();
		
		System.out.println(server1.transferRecord("CR10000", server2.getServerName(), "SPL123"));
		
		server1.printAllRecords();
		server2.printAllRecords();
	}
	
}
